<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'admin_add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
 <script language="javascript">
            function closeOpen()
		    {
		       window.returnValue=false;
		       window.close();
		    }
		    
			function check1(){
				if( document.getElementById("adminname").value==""){
					alert("请输入用户名");
					return false;
				}
				if( document.getElementById("adminPw").value==""){
					alert("请输入密码");
					return false;
				}
				if( document.getElementById("adminEm").value==""){
					alert("请输入电子邮箱");
					return false;
				}
				 
			       return true;
			}
        </script>
  </head>
  
 <body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'> 
	<form action="<%=path %>/servlet/AddAdmin" name="formAdd" method="post">
		 <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
			<tr bgcolor="#EEF4EA">
					  <td colspan="3" background="<%=path %>/images/wbg.gif" class='title' align='center'><span>管理员信息添加</span></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					 <td width="25%" bgcolor="#FFFFFF" align="right">
						         用户名：
					</td>
					 <td width="75%" bgcolor="#FFFFFF" align="left">
						        <input type="text" name="adminname" size="20"/>
					</td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
							        密码：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
							        <input type="password" name="adminPw" id="userPw" size="22"/>
					</td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					 <td width="25%" bgcolor="#FFFFFF" align="right">
							    邮箱：
					 </td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						        <input type="text" name="adminEm" id="userEm" size="22"/>
					 </td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					  <td width="25%" bgcolor="#FFFFFF" align="right">
						        &nbsp;
					 </td>
					 <td width="75%" bgcolor="#FFFFFF" align="left">
						       <input type="submit" value="提交" onClick="check1()"/>&nbsp; 
						       <input type="reset" value="重置"/>&nbsp;
						       <input type="button" value="取消" onclick="closeOpen()"/>
					</td>
			</tr>
		 </table>
	</form>
  </body>
</html>
